<template>
	<view class="u-demo">
		<view class="u-demo-title">
			{{content.sourceName}}
		</view>
		<image :src="base+content.pic" mode="" style="width: 100%;"></image>
		<view>房源地址：{{content.address}}</view>
		<view>建筑面积：{{content.areaSize}}平方米</view>
		<view>房源单价：{{content.price}}</view>
		<view>房源类型：{{content.houseType}}</view>
		<view>房源介绍：{{content.description}}</view>
		<uni-group style="position: fixed;right: 0%;left: 0%;bottom: 0%;">
			<button @click="zhu">返回主页</button>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base: api.baseurl,
				content:''
			}
		},
		onLoad(options) {
			this.getlun(options.id)
		},
		methods: {
			zhu(){
				uni.navigateBack({
					
				})
			},
			getlun(id) {
				this.$get(this.base + '/prod-api/api/house/housing/'+id).then((res) => {
					this.content  = res.data
				})
			}
		}
	}
</script>

<style>

</style>
